package com.zhongxiangspace.service;

import com.zhongxiangspace.entity.House;
import com.zhongxiangspace.entity.QueryAnalyzer;
import com.zhongxiangspace.entity.VO.QueryAnalyzerOffice;

import java.util.List;
import java.util.Map;

/**
 * 房源
 */
public interface HouseService {
    /**
     * 插入数据
     * @param house
     * @return
     */
    boolean inster(House house);

    List<Map<String,Object>> queryAll(QueryAnalyzer queryAnalyzer);

    /**
     * 删除记录
     * @param id
     * @return
     */
    boolean delete(Integer id);

    /**
     * 获取单条data
     * @param id
     * @return
     */
    House queryOne(Integer id);

    /**
     * 更新
     * @param house
     * @return
     */
    boolean updata(House house);

    /**
     * 获取房源
     * @param queryAnalyzerOffice
     * @return
     */
    List<House> queryBHList(QueryAnalyzerOffice queryAnalyzerOffice);

    /**
     * 精选房源
     * @param queryAnalyzerOffice
     * @return
     */
    List<Map<String,Object>> queryAllhouse(QueryAnalyzerOffice queryAnalyzerOffice);
}
